<%--
  Created by IntelliJ IDEA.
  User: acer
  Date: 2024/9/18
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.Enumeration" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
<html>
<head>
    <title>使用request内置对象</title>
</head>
<body bgcolor="#ccfffcc">
<h1>您刚才输入的内容是：</h1>
<%
    //获取到提交的所有属姓名
    Enumeration enu = request.getParameterNames();
    //使用Enumration时，需要在page标签中import=“java.util.*”
    while (enu.hasMoreElements()){
        String paramterName = (String) enu.nextElement();
        String paramterValue = request.getParameterNames(paramterName);
        out.print("参数名称："+paramterName+"<br>");
        out.print("参数内容："+paramterValue+"<br>");
    }
%>

</body>
</html>